﻿using Mes.Domain.BoundedContext;

namespace Mes.Application.DTO.Inputs.MasterData
{
    public class ProductionUnitInput
    {
        /// <summary>
        /// 生产单元名称
        /// </summary>
        public string ProductionUnitName { get; set; } = string.Empty;

        /// <summary>
        /// 生产单元编码
        /// </summary>
        public string ProductionUnitCode { get; set; } = string.Empty;

        /// <summary>
        /// 生产单元类型 关联生产单元类型配置表主键
        /// </summary>
        public int ProductionUnitTypeId { get; set; } = 0;

        /// <summary>
        /// 父级生产单元 关联此表主键
        /// </summary>
        public int ParentProductionUnitId { get; set; } = 0;
    }

    public class ProductionUnitUpdateInput : ProductionUnitInput
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; } = false;
    }

    public class ProductionUnitPageInput
    {
        /// <summary>
        /// 生产单元名称
        /// </summary>
        public string ProductionUnitName { get; set; } = string.Empty;

        public PagedInput PagedInput { get; set; }

        public ProductionUnitPageInput()
        {

        }

        public ProductionUnitPageInput(PagedInput input)
        {
            PagedInput = input;
        }
    }

    public class ProductionUnitChildsInput
    {
        public int Id { get; set; }

        public PagedInput PagedInput { get; set; }
    }
}
